<?php echo $this->fetch('member.header.html'); ?>
<style type="text/css">
.table .all {float: left; margin-right: 10px; cursor: pointer;}
.table .delete { float: left; padding-left: 25px; color: #919191; background: url(<?php echo $this->res_base . "/" . 'images/member/ico.gif'; ?>) no-repeat 10px -633px; }
.desc { float: left; padding-left: 25px; color: #919191; background: url(<?php echo $this->res_base . "/" . 'images/member/ico.gif'; ?>) no-repeat 10px -2187px; }
.table table {width: 100%; border-collapse: collapse;}
.table th {font-weight: normal; height: 32px;}
.table td {padding-top:12px; padding-bottom:12px;word-break: break-all; word-wrap:break-word;}
.table td a {color:#0579C6; text-decoration:none}
.table td a:hover {color:#FF6600; text-decoration:underline}
.table .line td {border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2;}
.table .line_bold {background: url(<?php echo $this->res_base . "/" . 'images/member/line_bold.gif'; ?>) repeat-x 0 bottom; }
.table_head_line { background: url(<?php echo $this->res_base . "/" . 'images/member/table_line.gif'; ?>) repeat-x 0 64px; }
.tr_color th {color: #919191;}
.width1 {width: 30px;}
.width4 {width: 60px;}
.width8 {width: 140px;}
.width11 {width: 200px;}
.color1 {color: #919191;}
.font_bold {font-weight:bold;}
.table .padding6 {padding-top: 50px; background:#fff;}
.member_no_records{color: #F00; padding: 35px 0px 5px 0px; text-align:center; font-weight: bold; font-size:14px;font-family:'Microsoft Yahei'}
</style>
<div class="content_color">
<div class="content">
    <div class="totline"></div><div class="botline"></div>
    <?php echo $this->fetch('member.menu.html'); ?>
    <div id="right">
        <?php echo $this->fetch('member.submenu.html'); ?>
        <div class="wrap">
            <div class="eject_btn" title="发送短消息"><b class="ico2" onclick="go('index.php?app=message&act=send');">发送短消息</b></div>
            <br />
            <div class="public table">
                <table class="table_head_line">
                    <?php if ($this->_var['messages']): ?>

                    <tr class="line_bold">
                    <?php if ($_GET['act'] != 'announcepm'): ?>
                        <th class="width1"><input type="checkbox" id="all" class="checkall"/></th>
                        <th class="align1" colspan="4">
                            <label for="all"><span class="all">全选</span></label>
                            <a href="javascript:;" class="delete" uri="index.php?app=message&act=drop" name="msg_id" presubmit="confirm('您确定要删除它吗？\n\n注意：删除后不可恢复！\n\n不想删除请点击取消')" ectype="batchbutton">删除</a>
                        </th>
                    <?php else: ?>
                        <th class="width1"></th>
                        <th colspan="5"></th>
                    <?php endif; ?>
                    </tr>

                    <tr class="line tr_color">
                        <th></th>
                        <th class="align1">用户名</th>
                        <th>内容</th>
                        <th>最后更新</th>
                        <th class="width4">操作</th>
                    </tr>
                    <?php endif; ?>
                    <?php $_from = $this->_var['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'message');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['message']):
        $this->_foreach['v']['iteration']++;
?>
                    <tr <?php if (($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?>class="line_bold"<?php else: ?>class="line"<?php endif; ?>>
                        <td><?php if ($_GET['act'] != 'announcepm'): ?><input type="checkbox" class="checkitem" value="<?php echo $this->_var['message']['msg_id']; ?>"/><?php endif; ?></td>
                        <td class="width11"><?php echo $this->_var['message']['user_info']['user_name']; ?></td>
                        <td <?php if ($this->_var['message']['new'] == 1): ?>class="font_bold"<?php endif; ?>><?php echo sub_str($this->_var['message']['content'],110); ?></td>
                        <td class="color1 width8"><?php echo local_date("Y-m-d H:i",$this->_var['message']['last_update']); ?></td>
                        <td class="width8"><a href="<?php echo url('app=message&act=view&msg_id=' . $this->_var['message']['msg_id']. ''); ?>" class="desc">查看详情</a>
                        <?php if ($this->_var['message']['user_info']['user_name'] != '公共消息'): ?><a href="javascript:drop_confirm('您确定要删除它吗？\n\n注意：删除后不可恢复！\n\n不想删除请点击取消', 'index.php?app=message&amp;act=drop&msg_id=<?php echo $this->_var['message']['msg_id']; ?>');" class="delete">删除</a><?php endif; ?></td>
                    </tr>
                    <?php endforeach; else: ?>
                    <tr>
                        <td colspan="5" class="member_no_records padding6">没有<?php echo $this->_var['lang'][$_GET['act']]; ?></td>
                    </tr>
                    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
                    <?php if ($this->_var['messages']): ?>
                    <?php if ($_GET['act'] != 'announcepm'): ?>
                    <tr>
                        <th class="width1"><input id="all2" type="checkbox" class="checkall" /></th>
                        <th class="align1"><label for="all2"><span class="all">全选</span></label><a href="javascript:void(0);" class="delete" uri="index.php?app=message&act=drop" name="msg_id" presubmit="confirm('您确定要删除它吗？\n\n注意：删除后不可恢复！\n\n不想删除请点击取消')" ectype="batchbutton">删除</a></th>
                        <td colspan="3">
                           <p class="position2">
                                <?php echo $this->fetch('member.page.bottom.html'); ?>
                            </p>
                         </td>
                    </tr>
                    <?php else: ?>
                    <tr>
                        <td colspan="5">
                           <p class="position2">
                                <?php echo $this->fetch('member.page.bottom.html'); ?>
                            </p>
                        </td>
                    </tr>
                    <?php endif; ?>
                    <?php endif; ?>
                </table>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<iframe id='iframe_post' name="iframe_post" frameborder="0" width="0" height="0">
</iframe>
<?php echo $this->fetch('footer_member.html'); ?>
